<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        let num1=['Ameruca','Greece','Britain','Canda','Chain','Egypt']
        let num2=[];
        num1.join();
        for(let index in num1){
            if(num1[index].indexOf('a') !=-1 || num1[index].indexOf('A') !=-1){
                num2++
            }
        }
        document.write(num2)
    </script>
</head>
<body>
    
</body>
</html>